package com.example.recycler.jdscrollbar;

import android.app.Application;
import android.content.ContentValues;
import android.net.Uri;

/**
 * Created by Administrator on 2017/3/14.
 */

public class MyApp extends Application{
    @Override
    public void onCreate() {
        super.onCreate();
        ContentValues cv = new ContentValues();
        cv.put("package", getPackageName());
        // Name of your activity declared in the manifest as
        // android.intent.action.MAIN.
        // Must be fully qualified name as shown below
        cv.put("class", "com.example.badge.activity.Test");
        cv.put("badgecount", 1); // integer count you want to display
        // Execute insert
        getContentResolver().insert(Uri.parse("content://com.sec.badge/apps"),
                cv);
    }
}
